package com.lebang.medicalInquiry.mapper;

import com.lebang.medicalInquiry.model.po.SubjectClassify;
import com.lebang.medicalInquiry.model.vo.admin.SubjectClassifyListVo;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import com.lebang.medicalInquiry.model.vo.SubjectClassifyVo;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SubjectClassifyMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SubjectClassify record);

    int insertSelective(SubjectClassify record);

    SubjectClassify selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SubjectClassify record);

    int updateByPrimaryKey(SubjectClassify record);

    List<SubjectClassifyVo> getPhysicantClassify(@Param("isPhysician") Integer isPhysician);

    List<SubjectClassifyListVo> listClassify(@Param("parentId") Integer parentId, @Param("state") Integer state, @Param("page") int page, @Param("limit") Integer limit);

    Integer countClassify(@Param("parentId") Integer parentId, @Param("state") Integer state);

    void deleteByParentId(Integer id);
}